@import '~@/static/less/mixin.less';

.layout {
  border: 1px solid #d7dde4;
  background: #f5f7f9;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: calc(100% - 64px);
  padding: 30px 0;
  box-sizing: border-box;
  .user-info,.main {
    width: 80%;
    margin:0 auto;
    background-color: #fff;
  }
  .user-info {
    margin-bottom: 10px;
    display: flex;
    padding: 10px 20px;
    > .left {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      border: 1px solid #ddd;
      overflow: hidden;
      .containCenter;
      img {
        max-width: 100%;
        max-height: 100%;
      }
    }
    > .right {
      margin-left: 20px;
      padding: 10px 0;
      .name {
        font-size: 20px;
        color:#333;
        font-weight: 600;
      }
      .bottom {
        margin-top: 5px;
        .count-article {
          text-align: center;
        }
      }
    }
  }
  .main {
    min-height: 80vh;
    .content {
			padding: 30px;
      .list {
        cursor: pointer;
        border-top: 1px solid #ddd;
        padding: 20px 0;
        box-sizing: border-box;
        height: 160px;
        display: flex;
        .content-list {
          flex: 1;
          overflow: hidden;
          h2 {
            width: 40em;
            .setEllipsis(1);
          }
          .box {
            display: flex;
            margin: 5px 0;
            font-size: 14px;
            color: #666;
            flex: 1;
            min-height: 60px;
            .setEllipsis(2);
          }
          .info {
            .type {
							position: relative;
							margin-left: 10px;
							padding:0 10px;
              display: inline-block;
							box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
							color: skyblue;
              i {
								position: absolute;
								top: -4px;
								left: -8px;
								color:#333;
								font-size: 20px;
								transform: rotate(30deg);
              }
            }
          }
        }
        .img {
          width: 140px;
          height: 100px;
          border-radius: 5px;
          margin-left: 30px;
          background-color: #ddd;
        }
      }
    }
    .sider {
      flex: 1;
      margin-left: 20px;
      padding: 30px;
      h3 {
        font-size: 18px;
      }
      .sider-list {
        margin-top: 20px;
        .list {
          height: 30px;
          line-height: 30px;
          font-size: 14px;
          padding-left: 20px;
          transition: all 1s;
          cursor: pointer;
          color: skyblue;
          &:hover {
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
          }
        }
      }
    }
  }
  .layout-footer-center {
    text-align: center;
  }
  .ivu-layout-footer {
    width: 100%;
    position: absolute;
    bottom: 0;
  }
  // .ivu-layout,
  // .ivu-card-body,
  // .ivu-layout-content,
  // .ivu-card-bordered  {
  //   height: 100%;
  // }
  // .ivu-card-bordered {
  //   overflow: auto;
  //   overflow-x: hidden;
  // }
  // .ivu-card {
  //   z-index: 0;
  // }
}
